<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ValidatePhone.aspx.cs" Inherits="ValidatePhone" Title="Validate your phone - gatsb" %>
<%@ Register Assembly="Decav.Gatsb.Web" Namespace="Decav.Gatsb.Web.Controls" TagPrefix="gatsb" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeaderPlaceholder" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageBodyPlaceholder" Runat="Server">
    <div style="margin-left:235px;margin-right:235px;">
        <h1>Validate Your Account</h1>
        <p>
            You need to validate your account to gain access to Gatsb.
        </p>
        <p>
            We have sent a text message to <b><asp:Literal runat="server" ID="telNumberLiteral" /></b> on
            <b><asp:Literal runat="server" ID="telProviderLiteral" /></b>.  Type the
            <b>validation code</b> into the box below to gain access to Gatsb.
        </p>
        <div runat="server" id="invalidNewNumberErrorDiv" class="ErrorRibbon">
            
        </div>
        <div class="ErrorRibbon" runat="server" id="invalidErrorDiv" visible="false">
            The code you entered is not what we have in our records.  If you need a new validation code, <asp:LinkButton runat="server" OnClick="ResendLink_Click" Text="click here" />.
        </div>
        <div class="StatusRibbon" runat="server" id="resendDiv" visible="false">
            We have resent your validation code to <b><asp:Literal runat="server" ID="telNumberLiteral2" /></b>.
        </div>
        <div style="text-align:center">
            <p>
                <asp:TextBox runat="server" ID="validationNumberText" MaxLength="5" />
            </p>
            <div>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="validationNumberText" Display="dynamic" ValidationGroup="ValidationNumber"
                    Text="Please enter your validation code to continue.  You can also resend your validation code by using the link below." />
                <asp:RegularExpressionValidator runat="server" ControlToValidate="validationNumberText" Display="dynamic" ValidationGroup="ValidationNumber"
                    Text="The validation code is 5 characters long." ValidationExpression="[a-zA-Z0-9]{5}" />
            </div>
            <p>
                <asp:Button UseSubmitBehavior="true" ID="submitButton" Text="Get Started" runat="server" OnClick="SubmitButton_Click" ValidationGroup="ValidationNumber" />
            </p>
            <p>
                Lost the text message?  Click here to <asp:LinkButton runat="server" ID="resendLink" Text="resend your validation number" OnClick="ResendLink_Click" />.
            </p>
            <p>
                <b>Wrong phone number?  Change it!</b><br />
                <asp:TextBox runat="server" ID="wrongPhoneNumberTextBox" MaxLength="10"/>
                <gatsb:WirelessProviderDropdown runat="server" ID="phoneProviderDropDown" /><br />
                <asp:Button runat="server" ID="changeNumberButton" OnClick="ChangeNumber_Click" Text="Change" />
            </p>
        </div>
    </div>
</asp:Content>

